home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
CC_C
/
0562.ZIP
/
ADDPATH.BAT
< prev
next >
Wrap
DOS Batch File
|
1987-03-29
|
1KB
|
32 lines
echo off
REM Following line is a "first-time switch" that allows this batch program
REM to execute another bat program (ADDPAT) and logically return, without
REM using the COMMAND /C construction.
if PAT==%PATX% goto endit
if "%1==" goto help
goto next
:help
cls
echo ┌─────────────────────────────────────────────────────────────────────┐
echo │ The ADDPATH routine requires a single pathname parameter, with no │
echo │ semicolons. Enter disk drive and directory path as appropriate. │
echo │ │
echo │ Example: To add to the PATH the sub-directory 123, located in │
echo │ directory SPRED on drive C:, enter │
echo │ │
echo │ ADDPATH C:\SPRED\123 │
echo └─────────────────────────────────────────────────────────────────────┘
goto out
:next
path >addpath.dat
set pat=%1
REM TO EXECUTE THIS FROM ANYWHERE: Add the full path to addpath.bas in the
REM next line. E.g., change it to basica \dir\addpath
basica addpath.bas
addpat
:endit
set PATX=
erase addpat.bat
:out